﻿<Activity mc:Ignorable="sads sap" x:Class="TfsCloudDeploy.Workflow.Core.Activities.Xaml.WaitForLockedItems" this:WaitForLockedItems.FilesToCheckLockStatus="[New String() {}]" this:WaitForLockedItems.TimeoutInSeconds="60" this:WaitForLockedItems.CommandPollIntervalInSeconds="10" this:WaitForLockedItems.TfExeFilePath="C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\TF.exe"
 xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities"
 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
 xmlns:mt="clr-namespace:Microsoft.TeamFoundation;assembly=Microsoft.TeamFoundation.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
 xmlns:mtbc="clr-namespace:Microsoft.TeamFoundation.Build.Client;assembly=Microsoft.TeamFoundation.Build.Client"
 xmlns:mtbc1="clr-namespace:Microsoft.TeamFoundation.Build.Client;assembly=Microsoft.TeamFoundation.Build.Client, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
 xmlns:mtbw="clr-namespace:Microsoft.TeamFoundation.Build.Workflow;assembly=Microsoft.TeamFoundation.Build.Workflow"
 xmlns:mtbw1="clr-namespace:Microsoft.TeamFoundation.Build.Workflow;assembly=Microsoft.TeamFoundation.Build.Workflow, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
 xmlns:mtbwa="clr-namespace:Microsoft.TeamFoundation.Build.Workflow.Activities;assembly=Microsoft.TeamFoundation.Build.Workflow"
 xmlns:mtbwa1="clr-namespace:Microsoft.TeamFoundation.Build.Workflow.Activities;assembly=Microsoft.TeamFoundation.Build.Workflow, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
 xmlns:mtbwt="clr-namespace:Microsoft.TeamFoundation.Build.Workflow.Tracking;assembly=Microsoft.TeamFoundation.Build.Workflow, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
 xmlns:mtbwt1="clr-namespace:Microsoft.TeamFoundation.Build.Workflow.Tracking;assembly=Microsoft.TeamFoundation.Build.Workflow"
 xmlns:mtc="clr-namespace:Microsoft.TeamFoundation.Client;assembly=Microsoft.TeamFoundation.Client, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
 xmlns:mtlwa="clr-namespace:Microsoft.TeamFoundation.Lab.Workflow.Activities;assembly=Microsoft.TeamFoundation.Lab.Workflow.Activities"
 xmlns:mtvc="clr-namespace:Microsoft.TeamFoundation.VersionControl.Client;assembly=Microsoft.TeamFoundation.VersionControl.Client"
 xmlns:mtvc1="clr-namespace:Microsoft.TeamFoundation.VersionControl.Client;assembly=Microsoft.TeamFoundation.VersionControl.Client, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
 xmlns:mtvc2="clr-namespace:Microsoft.TeamFoundation.VersionControl.Common;assembly=Microsoft.TeamFoundation.VersionControl.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
 xmlns:mva="clr-namespace:Microsoft.VisualBasic.Activities;assembly=System.Activities"
 xmlns:p="http://schemas.microsoft.com/netfx/2009/xaml/servicemodel"
 xmlns:s="clr-namespace:System;assembly=mscorlib"
 xmlns:s1="clr-namespace:System;assembly=System"
 xmlns:s2="clr-namespace:System;assembly=System.Core"
 xmlns:s3="clr-namespace:System;assembly=System.ServiceModel"
 xmlns:sa="clr-namespace:System.Activities;assembly=System.Activities"
 xmlns:sad="clr-namespace:System.Activities.Debugger;assembly=System.Activities"
 xmlns:sads="http://schemas.microsoft.com/netfx/2010/xaml/activities/debugger"
 xmlns:sap="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation"
 xmlns:sc="clr-namespace:System.Collections;assembly=mscorlib"
 xmlns:scg="clr-namespace:System.Collections.Generic;assembly=mscorlib"
 xmlns:scg1="clr-namespace:System.Collections.Generic;assembly=System.Core"
 xmlns:scg2="clr-namespace:System.Collections.Generic;assembly=System"
 xmlns:scg3="clr-namespace:System.Collections.Generic;assembly=System.ServiceModel"
 xmlns:scs="clr-namespace:System.Collections.Specialized;assembly=WindowsBase"
 xmlns:scs1="clr-namespace:System.Collections.Specialized;assembly=System"
 xmlns:si="clr-namespace:System.IO;assembly=System.Core"
 xmlns:si1="clr-namespace:System.IO;assembly=System"
 xmlns:si2="clr-namespace:System.IO;assembly=WindowsBase"
 xmlns:si3="clr-namespace:System.IO;assembly=mscorlib"
 xmlns:si4="clr-namespace:System.IO;assembly=System.ServiceModel"
 xmlns:sl="clr-namespace:System.Linq;assembly=System.Core"
 xmlns:srs="clr-namespace:System.Runtime.Serialization;assembly=mscorlib"
 xmlns:srs1="clr-namespace:System.Runtime.Serialization;assembly=System.Runtime.Serialization"
 xmlns:ss="clr-namespace:System.ServiceModel;assembly=System.ServiceModel.Activities"
 xmlns:ss1="clr-namespace:System.ServiceModel;assembly=System.ServiceModel"
 xmlns:ssa="clr-namespace:System.ServiceModel.Activities;assembly=System.ServiceModel.Activities"
 xmlns:ssc="clr-namespace:System.ServiceModel.Channels;assembly=System.ServiceModel"
 xmlns:this="clr-namespace:TfsCloudDeploy.Workflow.Core.Activities.Xaml"
 xmlns:twc="clr-namespace:TfsCloudDeploy.Workflow.Core"
 xmlns:twca="clr-namespace:TfsCloudDeploy.Workflow.Core.Activities"
 xmlns:twcd="clr-namespace:TfsCloudDeploy.Workflow.Core.DeploymentService"
 xmlns:twcda="clr-namespace:TfsCloudDeploy.Workflow.Core.DeploymentService.Activities"
 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  <x:Members>
    <x:Property Name="FilesToCheckLockStatus" Type="InArgument(s:String[])" />
    <x:Property Name="TimeoutInSeconds" Type="InArgument(x:Int32)" />
    <x:Property Name="CommandPollIntervalInSeconds" Type="InArgument(x:Int32)" />
    <x:Property Name="TfExeFilePath" Type="InArgument(x:String)" />
    <x:Property Name="SourcesDirectory" Type="InArgument(x:String)" />
    <x:Property Name="CheckStatusSucceeded" Type="OutArgument(x:Boolean)" />
    <x:Property Name="LockedFilesOutput" Type="OutArgument(x:String)" />
  </x:Members>
  <sap:VirtualizedContainerService.HintSize>1179,2673</sap:VirtualizedContainerService.HintSize>
  <mva:VisualBasic.Settings>Assembly references and imported namespaces serialized as XML namespaces</mva:VisualBasic.Settings>
  <sap:WorkflowViewStateService.ViewState>
    <scg:Dictionary x:TypeArguments="x:String, x:Object">
      <x:Boolean x:Key="ShouldExpandAll">False</x:Boolean>
      <x:Boolean x:Key="ShouldCollapseAll">False</x:Boolean>
    </scg:Dictionary>
  </sap:WorkflowViewStateService.ViewState>
  <Sequence sad:XamlDebuggerXmlReader.FileName="F:\CodePlex\TfsCloudDeploy\Dev\TfsCloudDeploy\Workflow.Core\Activities\WaitForLockedItems.xaml" sap:VirtualizedContainerService.HintSize="1139,2633" mtbwt1:BuildTrackingParticipant.Importance="None" mva:VisualBasic.Settings="Assembly references and imported namespaces serialized as XML namespaces">
    <Sequence.Variables>
      <Variable x:TypeArguments="x:Int32" Default="0" Name="CheckStatusExitCode" />
      <Variable x:TypeArguments="s:DateTime" Default="[DateTime.Now]" Name="StartTime" />
    </Sequence.Variables>
    <sap:WorkflowViewStateService.ViewState>
      <scg:Dictionary x:TypeArguments="x:String, x:Object">
        <x:Boolean x:Key="IsExpanded">True</x:Boolean>
      </scg:Dictionary>
    </sap:WorkflowViewStateService.ViewState>
    <If Condition="[FilesToCheckLockStatus.Length &gt; 0 And TimeoutInSeconds &gt; 0]" DisplayName="If There are Files to Lock-Status-Check" sap:VirtualizedContainerService.HintSize="1117,2509" mtbwt1:BuildTrackingParticipant.Importance="Low">
      <If.Then>
        <Sequence sap:VirtualizedContainerService.HintSize="892,2401" mtbwt1:BuildTrackingParticipant.Importance="Low">
          <Sequence.Variables>
            <Variable x:TypeArguments="x:String" Name="CheckStatusStdOutput" />
            <Variable x:TypeArguments="x:String" Name="CheckStatusStdError" />
            <Variable x:TypeArguments="x:Boolean" Default="False" Name="TimeoutExpired" />
            <Variable x:TypeArguments="x:Int32" Default="0" Name="NumberOfCheckStatusAttempts" />
            <Variable x:TypeArguments="scg:List(x:String)" Default="[New List(Of String)]" Name="SanitizedFilesToCheckStatusList" />
          </Sequence.Variables>
          <sap:WorkflowViewStateService.ViewState>
            <scg:Dictionary x:TypeArguments="x:String, x:Object">
              <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            </scg:Dictionary>
          </sap:WorkflowViewStateService.ViewState>
          <ForEach x:TypeArguments="x:String" DisplayName="ForEach&lt;String&gt;" sap:VirtualizedContainerService.HintSize="870,596" mtbwt1:BuildTrackingParticipant.Importance="Low" Values="[FilesToCheckLockStatus]">
            <ActivityAction x:TypeArguments="x:String">
              <ActivityAction.Argument>
                <DelegateInArgument x:TypeArguments="x:String" Name="fileItem" />
              </ActivityAction.Argument>
              <Sequence sap:VirtualizedContainerService.HintSize="487,488" mtbwt1:BuildTrackingParticipant.Importance="Low">
                <sap:WorkflowViewStateService.ViewState>
                  <scg:Dictionary x:TypeArguments="x:String, x:Object">
                    <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                  </scg:Dictionary>
                </sap:WorkflowViewStateService.ViewState>
                <If Condition="[Not (String.IsNullOrWhiteSpace(fileItem))]" DisplayName="If fileItem is Not Blank" sap:VirtualizedContainerService.HintSize="465,364" mtbwt1:BuildTrackingParticipant.Importance="Low">
                  <If.Then>
                    <Sequence sap:VirtualizedContainerService.HintSize="240,256" mtbwt1:BuildTrackingParticipant.Importance="Low">
                      <sap:WorkflowViewStateService.ViewState>
                        <scg:Dictionary x:TypeArguments="x:String, x:Object">
                          <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                        </scg:Dictionary>
                      </sap:WorkflowViewStateService.ViewState>
                      <InvokeMethod sap:VirtualizedContainerService.HintSize="218,132" mtbwt1:BuildTrackingParticipant.Importance="Low" MethodName="Add">
                        <InvokeMethod.TargetObject>
                          <InArgument x:TypeArguments="scg:List(x:String)">[SanitizedFilesToCheckStatusList]</InArgument>
                        </InvokeMethod.TargetObject>
                        <InArgument x:TypeArguments="x:String">[String.Format("""{0}""", fileItem.Split(New Char() {"|"c}, StringSplitOptions.RemoveEmptyEntries)(1))]</InArgument>
                      </InvokeMethod>
                    </Sequence>
                  </If.Then>
                  <If.Else>
                    <mtbwa:WriteBuildMessage sap:VirtualizedContainerService.HintSize="200,22" Importance="[Microsoft.TeamFoundation.Build.Client.BuildMessageImportance.High]" Message="Ignoring empty line." mva:VisualBasic.Settings="Assembly references and imported namespaces serialized as XML namespaces" />
                  </If.Else>
                </If>
              </Sequence>
            </ActivityAction>
          </ForEach>
          <DoWhile DisplayName="While Timeout Has Not Expired" sap:VirtualizedContainerService.HintSize="870,1641" mtbwt1:BuildTrackingParticipant.Importance="Low" Condition="[Not TimeoutExpired]">
            <Sequence sap:VirtualizedContainerService.HintSize="844,1519" mtbwt1:BuildTrackingParticipant.Importance="Low">
              <sap:WorkflowViewStateService.ViewState>
                <scg:Dictionary x:TypeArguments="x:String, x:Object">
                  <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                  <x:Boolean x:Key="IsPinned">False</x:Boolean>
                </scg:Dictionary>
              </sap:WorkflowViewStateService.ViewState>
              <Assign sap:VirtualizedContainerService.HintSize="822,60" mtbwt1:BuildTrackingParticipant.Importance="Low">
                <Assign.To>
                  <OutArgument x:TypeArguments="x:Int32">[NumberOfCheckStatusAttempts]</OutArgument>
                </Assign.To>
                <Assign.Value>
                  <InArgument x:TypeArguments="x:Int32">[NumberOfCheckStatusAttempts + 1]</InArgument>
                </Assign.Value>
              </Assign>
              <mtbwa:WriteBuildMessage sap:VirtualizedContainerService.HintSize="822,22" Importance="[Microsoft.TeamFoundation.Build.Client.BuildMessageImportance.High]" Message="[String.Format(&quot;Check Status: Attempt #{0}.&quot;, NumberOfCheckStatusAttempts)]" mva:VisualBasic.Settings="Assembly references and imported namespaces serialized as XML namespaces" />
              <mtbwa:InvokeProcess Arguments="[String.Format(&quot;status {0} /user:*&quot;, String.Join(&quot; &quot;, SanitizedFilesToCheckStatusList.ToArray()))]" DisplayName="Invoke TF.EXE to Check Out Edits" FileName="[TfExeFilePath]" sap:VirtualizedContainerService.HintSize="822,51" mtbwt1:BuildTrackingParticipant.Importance="Low" Result="[CheckStatusExitCode]" WorkingDirectory="[SourcesDirectory]">
                <mtbwa:InvokeProcess.ErrorDataReceived>
                  <ActivityAction x:TypeArguments="x:String">
                    <ActivityAction.Argument>
                      <DelegateInArgument x:TypeArguments="x:String" Name="stdError" />
                    </ActivityAction.Argument>
                    <Sequence sap:VirtualizedContainerService.HintSize="264,246" mtbwt1:BuildTrackingParticipant.Importance="Low">
                      <sap:WorkflowViewStateService.ViewState>
                        <scg:Dictionary x:TypeArguments="x:String, x:Object">
                          <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                        </scg:Dictionary>
                      </sap:WorkflowViewStateService.ViewState>
                      <Assign sap:VirtualizedContainerService.HintSize="242,60" mtbwt1:BuildTrackingParticipant.Importance="Low">
                        <Assign.To>
                          <OutArgument x:TypeArguments="x:String">[CheckStatusStdError]</OutArgument>
                        </Assign.To>
                        <Assign.Value>
                          <InArgument x:TypeArguments="x:String">[stdError]</InArgument>
                        </Assign.Value>
                      </Assign>
                      <mtbwa:WriteBuildMessage sap:VirtualizedContainerService.HintSize="242,22" Importance="[Microsoft.TeamFoundation.Build.Client.BuildMessageImportance.High]" Message="[String.Format(&quot;Check Status Standard Error: {0}.&quot;, CheckStatusStdError)]" mva:VisualBasic.Settings="Assembly references and imported namespaces serialized as XML namespaces" />
                    </Sequence>
                  </ActivityAction>
                </mtbwa:InvokeProcess.ErrorDataReceived>
                <mtbwa:InvokeProcess.OutputDataReceived>
                  <ActivityAction x:TypeArguments="x:String">
                    <ActivityAction.Argument>
                      <DelegateInArgument x:TypeArguments="x:String" Name="stdOutput" />
                    </ActivityAction.Argument>
                    <Sequence sap:VirtualizedContainerService.HintSize="264,246" mtbwt1:BuildTrackingParticipant.Importance="Low">
                      <sap:WorkflowViewStateService.ViewState>
                        <scg:Dictionary x:TypeArguments="x:String, x:Object">
                          <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                        </scg:Dictionary>
                      </sap:WorkflowViewStateService.ViewState>
                      <Assign sap:VirtualizedContainerService.HintSize="242,60" mtbwt1:BuildTrackingParticipant.Importance="Low">
                        <Assign.To>
                          <OutArgument x:TypeArguments="x:String">[CheckStatusStdOutput]</OutArgument>
                        </Assign.To>
                        <Assign.Value>
                          <InArgument x:TypeArguments="x:String">[stdOutput]</InArgument>
                        </Assign.Value>
                      </Assign>
                      <mtbwa:WriteBuildMessage sap:VirtualizedContainerService.HintSize="242,22" Importance="[Microsoft.TeamFoundation.Build.Client.BuildMessageImportance.High]" Message="[String.Format(&quot;Check Status Standard Output: {0}.&quot;, CheckStatusStdOutput)]" mva:VisualBasic.Settings="Assembly references and imported namespaces serialized as XML namespaces" />
                    </Sequence>
                  </ActivityAction>
                </mtbwa:InvokeProcess.OutputDataReceived>
                <sap:WorkflowViewStateService.ViewState>
                  <scg:Dictionary x:TypeArguments="x:String, x:Object">
                    <x:Boolean x:Key="IsExpanded">False</x:Boolean>
                    <x:Boolean x:Key="IsPinned">False</x:Boolean>
                  </scg:Dictionary>
                </sap:WorkflowViewStateService.ViewState>
              </mtbwa:InvokeProcess>
              <If Condition="[CheckStatusExitCode = 0]" DisplayName="If Check Status Succeeded" sap:VirtualizedContainerService.HintSize="822,316" mtbwt1:BuildTrackingParticipant.Importance="Low">
                <sap:WorkflowViewStateService.ViewState>
                  <scg:Dictionary x:TypeArguments="x:String, x:Object">
                    <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                    <x:Boolean x:Key="IsPinned">False</x:Boolean>
                  </scg:Dictionary>
                </sap:WorkflowViewStateService.ViewState>
                <If.Then>
                  <Sequence sap:VirtualizedContainerService.HintSize="222,146" mtbwt1:BuildTrackingParticipant.Importance="Low">
                    <sap:WorkflowViewStateService.ViewState>
                      <scg:Dictionary x:TypeArguments="x:String, x:Object">
                        <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                      </scg:Dictionary>
                    </sap:WorkflowViewStateService.ViewState>
                    <mtbwa:WriteBuildMessage sap:VirtualizedContainerService.HintSize="200,22" Importance="[Microsoft.TeamFoundation.Build.Client.BuildMessageImportance.Low]" Message="[String.Format(&quot;Check Status finished successfully for attempt #{0}.&quot;, NumberOfCheckStatusAttempts)]" mva:VisualBasic.Settings="Assembly references and imported namespaces serialized as XML namespaces" />
                  </Sequence>
                </If.Then>
                <If.Else>
                  <Sequence sap:VirtualizedContainerService.HintSize="222,208" mtbwt1:BuildTrackingParticipant.Importance="Low">
                    <sap:WorkflowViewStateService.ViewState>
                      <scg:Dictionary x:TypeArguments="x:String, x:Object">
                        <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                      </scg:Dictionary>
                    </sap:WorkflowViewStateService.ViewState>
                    <mtbwa:WriteBuildError sap:VirtualizedContainerService.HintSize="200,22" Message="[String.Format(&quot;Check Status failed during attempt #{0} with exit code: '{1}'.&quot;, NumberOfCheckStatusAttempts, CheckStatusExitCode)]" />
                    <Throw Exception="[New Exception(String.Format(&quot;Check Status failed during attempt #{0} with exit code: '{1}'.&quot;, NumberOfCheckStatusAttempts, CheckStatusExitCode))]" sap:VirtualizedContainerService.HintSize="200,22" mtbwt1:BuildTrackingParticipant.Importance="Low" />
                  </Sequence>
                </If.Else>
              </If>
              <If Condition="[CheckStatusStdOutput.Contains(&quot;There are no pending changes.&quot;)]" DisplayName="If There are No Pending Changes" sap:VirtualizedContainerService.HintSize="822,786" mtbwt1:BuildTrackingParticipant.Importance="Low">
                <sap:WorkflowViewStateService.ViewState>
                  <scg:Dictionary x:TypeArguments="x:String, x:Object">
                    <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                    <x:Boolean x:Key="IsPinned">False</x:Boolean>
                  </scg:Dictionary>
                </sap:WorkflowViewStateService.ViewState>
                <If.Then>
                  <Sequence sap:VirtualizedContainerService.HintSize="264,346" mtbwt1:BuildTrackingParticipant.Importance="Low">
                    <sap:WorkflowViewStateService.ViewState>
                      <scg:Dictionary x:TypeArguments="x:String, x:Object">
                        <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                      </scg:Dictionary>
                    </sap:WorkflowViewStateService.ViewState>
                    <Assign sap:VirtualizedContainerService.HintSize="242,60" mtbwt1:BuildTrackingParticipant.Importance="Low">
                      <Assign.To>
                        <OutArgument x:TypeArguments="x:Boolean">[CheckStatusSucceeded]</OutArgument>
                      </Assign.To>
                      <Assign.Value>
                        <InArgument x:TypeArguments="x:Boolean">True</InArgument>
                      </Assign.Value>
                    </Assign>
                    <Assign sap:VirtualizedContainerService.HintSize="242,60" mtbwt1:BuildTrackingParticipant.Importance="Low">
                      <Assign.To>
                        <OutArgument x:TypeArguments="x:Boolean">[TimeoutExpired]</OutArgument>
                      </Assign.To>
                      <Assign.Value>
                        <InArgument x:TypeArguments="x:Boolean">True</InArgument>
                      </Assign.Value>
                    </Assign>
                    <mtbwa:WriteBuildMessage sap:VirtualizedContainerService.HintSize="242,22" Importance="[Microsoft.TeamFoundation.Build.Client.BuildMessageImportance.High]" Message="Check Status Successful: No pending changes." mva:VisualBasic.Settings="Assembly references and imported namespaces serialized as XML namespaces" />
                  </Sequence>
                </If.Then>
                <If.Else>
                  <Sequence sap:VirtualizedContainerService.HintSize="533,678" mtbwt1:BuildTrackingParticipant.Importance="Low">
                    <sap:WorkflowViewStateService.ViewState>
                      <scg:Dictionary x:TypeArguments="x:String, x:Object">
                        <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                      </scg:Dictionary>
                    </sap:WorkflowViewStateService.ViewState>
                    <If Condition="[DateTime.Now &gt; StartTime.AddSeconds(TimeoutInSeconds)]" DisplayName="If Timeout Has Expired" sap:VirtualizedContainerService.HintSize="511,554" mtbwt1:BuildTrackingParticipant.Importance="Low">
                      <If.Then>
                        <Sequence sap:VirtualizedContainerService.HintSize="264,446" mtbwt1:BuildTrackingParticipant.Importance="Low">
                          <sap:WorkflowViewStateService.ViewState>
                            <scg:Dictionary x:TypeArguments="x:String, x:Object">
                              <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                            </scg:Dictionary>
                          </sap:WorkflowViewStateService.ViewState>
                          <Assign sap:VirtualizedContainerService.HintSize="242,60" mtbwt1:BuildTrackingParticipant.Importance="Low">
                            <Assign.To>
                              <OutArgument x:TypeArguments="x:Boolean">[CheckStatusSucceeded]</OutArgument>
                            </Assign.To>
                            <Assign.Value>
                              <InArgument x:TypeArguments="x:Boolean">False</InArgument>
                            </Assign.Value>
                          </Assign>
                          <Assign sap:VirtualizedContainerService.HintSize="242,60" mtbwt1:BuildTrackingParticipant.Importance="Low">
                            <Assign.To>
                              <OutArgument x:TypeArguments="x:String">[LockedFilesOutput]</OutArgument>
                            </Assign.To>
                            <Assign.Value>
                              <InArgument x:TypeArguments="x:String">[CheckStatusStdOutput]</InArgument>
                            </Assign.Value>
                          </Assign>
                          <Assign sap:VirtualizedContainerService.HintSize="242,60" mtbwt1:BuildTrackingParticipant.Importance="Low">
                            <Assign.To>
                              <OutArgument x:TypeArguments="x:Boolean">[TimeoutExpired]</OutArgument>
                            </Assign.To>
                            <Assign.Value>
                              <InArgument x:TypeArguments="x:Boolean">True</InArgument>
                            </Assign.Value>
                          </Assign>
                          <mtbwa:WriteBuildMessage sap:VirtualizedContainerService.HintSize="242,22" Importance="[Microsoft.TeamFoundation.Build.Client.BuildMessageImportance.High]" Message="Check Status Failed: Timeout Expired." mva:VisualBasic.Settings="Assembly references and imported namespaces serialized as XML namespaces" />
                        </Sequence>
                      </If.Then>
                      <If.Else>
                        <Sequence sap:VirtualizedContainerService.HintSize="222,208" mtbwt1:BuildTrackingParticipant.Importance="Low">
                          <sap:WorkflowViewStateService.ViewState>
                            <scg:Dictionary x:TypeArguments="x:String, x:Object">
                              <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                            </scg:Dictionary>
                          </sap:WorkflowViewStateService.ViewState>
                          <mtbwa:WriteBuildMessage sap:VirtualizedContainerService.HintSize="200,22" Importance="[Microsoft.TeamFoundation.Build.Client.BuildMessageImportance.High]" Message="[String.Format(&quot;Check Status: Waiting for {0} seconds...&quot;, CommandPollIntervalInSeconds)]" mva:VisualBasic.Settings="Assembly references and imported namespaces serialized as XML namespaces" />
                          <Delay Duration="[TimeSpan.FromSeconds(CommandPollIntervalInSeconds)]" sap:VirtualizedContainerService.HintSize="200,22" mtbwt1:BuildTrackingParticipant.Importance="Low" />
                        </Sequence>
                      </If.Else>
                    </If>
                  </Sequence>
                </If.Else>
              </If>
            </Sequence>
          </DoWhile>
        </Sequence>
      </If.Then>
      <If.Else>
        <mtbwa:WriteBuildMessage sap:VirtualizedContainerService.HintSize="200,22" Importance="[Microsoft.TeamFoundation.Build.Client.BuildMessageImportance.High]" Message="[String.Format(&quot;Check Status: Skipping check since either timeout is 0 or no candidate files specified.&quot;)]" mva:VisualBasic.Settings="Assembly references and imported namespaces serialized as XML namespaces" />
      </If.Else>
    </If>
  </Sequence>
</Activity>